package com.weavernorth.retailExperienceAward;

import com.weavernorth.retailExperienceAward.service.StoreRetailExpQyjlService;
import com.weavernorth.util.Logger4jUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.log4j.Logger;
import weaver.interfaces.schedule.BaseCronJob;

/**
 * @Author: bruseewang
 * @Package: com.weavernorth.retailExperienceAward
 * @date: 2020/6/2 18:17
 * @description: 定时任务创建：区域经理零售体验奖考核申请流程
 */
public class StoreRetailExpQyjlTimmer extends BaseCronJob {
//    Logger log = Logger4jUtil.getLoggerByName("/Timmer/StoreRetailExpQyjlTimmer/");
    public String cycle;
    public String getcycle() {
        return cycle;
    }
    public void setcycle(String cycle) {
        this.cycle = cycle;
    }
    @Override
    public void execute() {
        Logger log =Logger4jUtil.getLoggerByName("/Timmer/StoreRetailExpQyjlTimmer/");
        log.info("定时任务---区域经理零售体验奖考核申请流程--。。。");
        StoreRetailExpQyjlService imp=new StoreRetailExpQyjlService();
        imp.setcycle(Integer.parseInt(cycle));
        imp.setLog(log);
        imp.createFormal();
        log.info("定时任务---流程创建成功。。。");
    }
}
